/*
 * @Author: asdefwe 535294621@qq.com
 * @Date: 2024-05-21 22:17:48
 * @LastEditors: asdefwe 535294621@qq.com
 * @LastEditTime: 2024-05-21 23:41:18
 * @FilePath: \usb_-uart\User\my_UI.c
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
#include "my_UI.h"
#include "st7735s.h"

static lcd_t lcd;

void UI_main_page()
{
	// 行
	LCE_Fill_Memory(0, 0, 160, 4, Silver);
	LCE_Fill_Memory(4+54+4+54+4, 4+15, 156, 4+15+4, Silver);
	LCE_Fill_Memory(4, 4+15+4+15, 156, 4+15+4+15+4, Silver);
	LCE_Fill_Memory(4+54+4+54+4, 4+15+4+15+4+15, 156, 4+15+4+15+4+15+4, Silver);
	LCE_Fill_Memory(0, 76, 160, 80, Silver);

	// 列
	LCE_Fill_Memory(0, 4, 4, 76, Silver);
	LCE_Fill_Memory(4+54, 4, 4+54+4, 4+15+4+15, Silver);
	LCE_Fill_Memory(4+54, 4+15+4+15+4, 4+54+4, 4+15+4+15+4+15+4+15, Silver);
	LCE_Fill_Memory(4+54+4+54, 4, 4+54+4+54+4, 4+15+4+15, Silver);
	LCE_Fill_Memory(4+54+4+54, 4+15+4+15+4, 4+54+4+54+4, 4+15+4+15+4+15+4+15, Silver);
	LCE_Fill_Memory(156, 4, 160, 76, Silver);
	
	// 填充纯色背景
	LCE_Fill_Memory(4+54+4+54+4, 4, 160-4, 4+15, RED);
	LCE_Fill_Memory(4+54+4+54+4, 4+15+4, 160-4, 4+15+4+15, RED);
	LCE_Fill_Memory(4+54+4+54+4, 4+15+4+15+4, 160-4, 4+15+4+15+4+15, RED);
	LCE_Fill_Memory(4+54+4+54+4, 4+15+4+15+4+15+4, 160-4, 4+15+4+15+4+15+4+15, RED);
	
	LCE_Fill_Memory(4, 4, 4+54, 4+15+4+15, WHITE);
	LCE_Fill_Memory(4, 4+15+4+15+4, 4+54, 4+15+4+15+4+15+4+15, WHITE);
	
	LCE_Fill_Memory(4+54+4, 4, 4+54+4+54, 4+15+4+15, BLACK);
	LCE_Fill_Memory(4+54+4, 4+15+4+15+4, 4+54+4+54, 4+15+4+15+4+15+4+15, BLACK);
	
	lcd.bkColor = RED;
	lcd.color = WHITE;
	lcd.X = 4+54+4+54+4+5;
	lcd.Y = 4+2;
	Lcd_Draw_Font_8H10W(lcd, "VCC");
	
	lcd.X = 4+54+4+54+4+5;
	lcd.Y = 4+15+4+2;
	Lcd_Draw_Font_8H10W(lcd, "RXD");
	
	lcd.X = 4+54+4+54+4+5;
	lcd.Y = 4+15+4+15+4+2;
	Lcd_Draw_Font_8H10W(lcd, "TXD");
	
	lcd.X = 4+54+4+54+4+5;
	lcd.Y = 4+15+4+15+4+15+4+2;
	Lcd_Draw_Font_8H10W(lcd, "GND");

	lcd.bkColor = WHITE;
	lcd.color = BLACK;
	lcd.X = 4+3;
	lcd.Y = 4+12;
	Lcd_Draw_Font_14H17W(lcd, "UART1");
	
	lcd.X = 4+3;
	lcd.Y = 4+34+4+12;
	Lcd_Draw_Font_14H17W(lcd, "UART2");
	
	lcd.bkColor = BLACK;
	lcd.color = WHITE;
	lcd.X = 4+54+4+3;
	lcd.Y = 4+12;
	Lcd_Draw_Font_14H17W(lcd, "UART3");
	
	lcd.X = 4+54+4+3;
	lcd.Y = 4+34+4+12;
	Lcd_Draw_Font_14H17W(lcd, "UART4");

}












